package com.dq.Week2.day06.polymorphic;

import com.dq.Week2.day06.Dog;
import com.dq.Week2.day06.Fish;

public class Demo02 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.setName("旺财");
        AnimalUtis.feedAnimal(dog);

        Fish fish = new Fish();
        fish.setName("罗飞🐟");
        AnimalUtis.feedAnimal(fish);

    }
}